.crates-heading {
    width: 100%;
    padding: 20px;
    background-color: $main-bg-dark;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    .wide {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }

    .info {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        img {
            align-self: center;
        }
        .team-info {
            flex-direction: column;
        }
    }
    h1 {
        padding-left: 10px;
        padding-right: 10px;
    }
    h2, small { color: $main-color-light; padding-left: 10px; }
    .right {
        flex: 2;
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
    }
    @media only screen and (max-width: 650px) {
        .right { justify-content: center; }
    }
}

#selection {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-radius: 5px;
    background-color: white;
    margin-bottom: 40px;

    a {
        text-decoration: none;
        font-weight: bold;
        color: inherit;
        padding: 5px;
    }
    a:hover { background-color: $main-bg-dark; }
    a.active { background-color: $main-bg-dark; }

    select {
        display: none;
        width: 100%;
        padding: 5px;
    }

    @media only screen and (max-width: 650px) {
        padding: 0;
        background-color: inherit;
        a { display: none; }
        select { display: block; }
    }
}

#results {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;

    .cur, .total { color: $main-color; font-weight: bold; }

    .dropdown-container { font-size: 85%; }
    .dropdown-button {
        background-color: $main-bg-dark;
        padding: 10px;
        display: inline-block;
        border: none;
        border-radius: 5px;
    }
}

.white-rows {
    background-color: white;
    padding: 0 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;

    .row {
        width: 100%;
        border-bottom: 2px solid $gray-border;
        padding: 20px 0;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;

        &:last-of-type { border: none; }
    }
}

.crate {
    .desc {
        padding-top: 5px;
        display: flex;
        flex-direction: column;
        width: 75%;
    }

    .info a {
        color: $main-color;
        font-weight: bold;
        text-decoration: none;
        font-size: 120%;
    }
    .vers {
        margin-left: 10px;
    }

    .stats {
        width: 25%;
        color: $main-color-light;
    }
    .downloads {
        display: flex;
        align-items: center;
        padding-bottom: 5px;
    }
    .recent-downloads {
        display: flex;
        align-items: center;
    }
    .updated-at {
        padding-top: 5px;
        display: flex;
        align-items: center;

        svg {
            padding: 10px;
        }
    }

    .rev-dep-downloads {padding-left: 7px}
}

.exact-match {
    margin-bottom: 40px;
    border-bottom: solid beige;
    div {
        padding: 10px;
    }
    h1 {
        color: green
    }
}

.quick-links {
    ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;

        font-size: 80%;
        list-style-type: none;
        margin: 1em 0 0 0;
        padding: 0;


        li {
            margin-right: 1em;

            &:last-child {
                margin-right: 0;
            }
        }
    }
}

#crate-links {
    display: flex;
    padding-bottom: 20px;
    border-bottom: 5px solid $gray-border;
    margin-bottom: 30px;

    h3 { margin-bottom: 5px; }
    .section {
        flex: 1;
        margin-right: 10px;
        li { line-height: 24px; }
        .date { color: $main-color-light; padding-left: 5px; }
    }

    ul { list-style: none; padding: 0; }

    @media only screen and (max-width: 380px) {
        flex-direction: column;
    }
    @media only screen and (max-width: 730px) {
        #crate-dev-dependencies { display: none; }
    }
    @media only screen and (max-width: 430px) {
        #crate-dependencies { display: none; }
    }
}

.all-versions-back { margin-bottom: 20px; }
